﻿using DAL.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MqTools
{
    [Serializable]
    public class QueueMessage
    {
        public ActionType Action { get; set; }
        public Bag Bag { get; set; }
        public Complaint Complaint { get; set; }

        public UserInfo User { get; set; }

        public enum ActionType
        {
            BAG_REGISTRER,
            BAG_UPDATE,
            BAG_DELETE,
            COMPLAINT_REPLY,
            COMPLAINT_UPDATE,
            COMPLAINT_SUBMIT,
            COMPLAINT_DELETE,
            USER_REGISTER,
        }

        public override string ToString()
        {
            return Action.ToString(); 
        }
    }

   

}